package com.xl.studentpass.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xl.studentpass.entity.UserEntity;
import com.xl.studentpass.utils.R;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @author: xl
 * @createTime: 2023/5/24 10:47:46
 * @program: student-pass
 * @e-mail: 2199396150@qq.com
 * @description: 登录服务
 */
public interface LoginService extends IService<UserEntity> {

    R loginAndRegister(Map<String, String> user);

    UserEntity checkUserExistByPhone(String phone);

    R login(Map<String, String> userVo);

    R sendMessage(Map<String, String> phoneMap, HttpServletRequest request);

    R sendMessage(String phone);
}
